# 动态创建函数
def greet(name):
    print(f"Hello, {name}!")


say_hello = greet  # 函数赋值给变量
say_hello("Alice")  # 输出: Hello, Alice!
